# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
#from PeteParker.handler.General import GeneralHandler

class MainPipeline(object):
  def process_item(self, item, spider):
    if item['contentType'] == 'unknown':
      #GeneralHandler(item).printInfo()
      for key, value in item.items():
        if key != 'body':
          print("%s:\n%s" % (key,value))
    return item
        #return item
